<?php

function pl($qq,$sid,$pinglun) {
preg_match('@B_UID=(\d+)&(.*)mood_id=(.*)&(.*)">评论\(0\)</a>@',file_get_contents('http://ish.z.qq.com/infocenter_v2.jsp?B_UID='.$qq.'&sid='.$sid.'&g_ut=1'),$file);
if (count($file[1])) {
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'http://info60.z.qq.com/infocenter/myfeed_mood.jsp?sid=' . $sid);
curl_setopt($ch,CURLOPT_POSTFIELDS,'content=' . $pinglun . '&B_UID=' . html_entity_decode($file[1] . '&mood_id=' . $file[3] . '&mood_uin=' . $file[1]) . '&t1_source=1&feedcenter_pn=1&flag=1&type=all&channel=&back=false&offset=&ic=false&dl=null&to_tweet=&count=8&submit=评论');
if (curl_exec($ch)) echo '评论一个';
curl_close($ch);
}
}
?>